<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="org.jeecgframework.core.util.SysThemesUtil,org.jeecgframework.core.enums.SysThemesEnum"%>
<%@include file="/context/mytags.jsp"%>
<%
  session.setAttribute("lang","zh-cn");
  SysThemesEnum sysTheme = SysThemesUtil.getSysTheme(request);
  String lhgdialogTheme = SysThemesUtil.getLhgdialogTheme(sysTheme);
%>
<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  <meta charset="utf-8" />
  <title><spring:message code="sys.title"/></title>
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
  <link href="plug-in/toast/toastr.css" rel="stylesheet">
   <link rel="stylesheet" href="plug-in/ace/css/bootstrap.css" />
  <link rel="stylesheet" href="plug-in/ace/css/font-awesome.css" />
  <link rel="stylesheet" type="text/css" href="plug-in/accordion/css/accordion.css">
  <!-- text fonts -->
  <link rel="stylesheet" href="plug-in/ace/css/ace-fonts.css" /> 
  <link rel="stylesheet" href="plug-in/ace/css/jquery-ui.css" />
  <!-- ace styles -->
  <link rel="stylesheet" href="plug-in/ace/css/ace.css" class="ace-main-stylesheet" id="main-ace-style" /> 
  <script type="text/javascript" src="plug-in/jquery/jquery-1.8.3.min.js"></script>
  <script src="plug-in/ace/js/ace-extra.js"></script>
  <style>
		 
		 .toast-top-right {
			  top:130px;
			  left:50%; 
			  margin-left:-150px;
			  z-index: 999999; 
		 }
 
 
  	#IEUse{
  		display:none;  
   		font-size: 16px;
  		margin-top:20px;
  	}
  	
  	#IEUse a{
  		font-size:16px;
  		color: red !important;
  		text-decoration: underline; 
  	}
  	
  	.registerBtn{
  		font-size:16px;
  		text-decoration: underline;
  		margin-top:5px;
  	}
  	
  	.login-container {
    width: 375px;
    margin: 0 auto;
    right: 100px;
    position: absolute;
	}
	
	.row{
		margin-left:0;
		margin-right:0;
	}
  	
  </style>
</head>
<body style="background-color: white;">
<div class="main-container">
  <div class="main-content">
  	<div class="row" style="font-size:30px;padding-left:50px;
  		background-color: white;height:60px;line-height:60px;border-top: 4px solid #44B549;">
  			
  			<spring:message code="sys.title"/>
  			
  			<div style="float:right;padding-right: 12px;">  				 
    			<a href="loginController.do?login&lang=zh_CN"><spring:message code="language.cn"/></a> &nbsp;&nbsp;&nbsp;
    			<a href="loginController.do?login&lang=en_US"><spring:message code="language.en"/></a>
  			</div>
  	</div>
    <div class="row" style="height:440px;background-image: url(images/bg.jpg);background-size: 100% 100%;
     background-repeat: no-repeat;background-color:rgb(241,241,241)">
      <div class="col-sm-10 col-sm-offset-1">
        <div class="login-container">
          <div class="center">          	
            <h1 id="id-text2" class="grey" style="margin-top:100px;">
                
            </h1>            
          </div>
          <div class="space-6"></div>
          <div class="position-relative">
            <div id="login-box" class="login-box visible widget-box no-border">
              <div class="widget-body">
                <form id="loinForm" class="form-horizontal"  check="loginController.do?checkuser"
						 role="form" action="loginController.do?login&callback=${callback}"  method="post">
                <div class="widget-main">
                
                  <h4 class="header blue lighter bigger">
                    <i class="ace-icon fa fa-coffee green"></i>
                	    用户登录
                  </h4>
                  <div class="space-6"></div>
                      <label class="block clearfix">
								<span class="block input-icon input-icon-right">
									<input type="text"  name="userName" class="form-control" placeholder="请输入用户名"  
									id="userName" value="endurego"/>
									<i class="ace-icon fa fa-user"></i>
								</span>
                      </label>
                      <label class="block clearfix">
								<span class="block input-icon input-icon-right">
									<input type="password" name="password" class="form-control" 
									placeholder="请输入密码" id="password" value="endurego"/>
									<i class="ace-icon fa fa-lock"></i>
								</span>
                      </label>
                      <label class="block clearfix">
                        <div class="input-group">
                          <input type="hidden" style="width:150px" name="randCode" class="form-control" placeholder="请输入验证码"  id="randCode" value="1"/>
                          <!-- <span class="input-group-addon" style="padding: 0px;"><img id="randCodeImage" src="randCodeImage"  /></span> -->
                        </div>
                      </label>
                      <div class="space"></div>
                      <div class="clearfix">
						<!-- <a href="javascript:void(0)" onclick="register()" class="registerBtn">用户注册</a> -->
                        <button type="button" id="but_login"  class="width-35 pull-right btn btn-sm btn-primary">
                          <i class="ace-icon fa fa-key"></i>
                          <span class="bigger-110" >登录</span>
                        </button>
                      </div>
                       
		         </div>
              
                </form>
              </div>
            </div>
            </div>
            </div>
          </div>
          
        </div>
        <div class="row" style="background-color: white;width:80%;margin:auto;">
          	
          	<table style="margin:auto;margin-top:30px;">
          		<tr>
          			<td>测试客户用户名：client</td><td>测试客户密码： test</td>
          		</tr>
          		<tr>
          			<td style="width:160px;">管理人员用户名：endurego</td><td>管理人员密码：endurego</td>
          		</tr>
          	</table>
          	
        	  <div class="center"><h4 style="font-size:14px;" class="blue" id="id-company-text">&copy;2017</h4></div>
          	          	
        </div>
      </div>
    </div> 

<script>

	var IeMsg="您当前IE浏览器版本过低，请更新到IE9或以上版本";
	var flag = true;
	
	if(navigator.userAgent.indexOf("MSIE")>0)
	{ 
		if(navigator.userAgent.indexOf("MSIE 6.0")>0)
		{ 
			flag = false;
		} 
		if(navigator.userAgent.indexOf("MSIE 7.0")>0)
		{
			flag = false;
		} 
		if(navigator.userAgent.indexOf("MSIE 8.0")>0)
		{
			flag = false;
		} 
		if(navigator.userAgent.indexOf("MSIE 9.0")>0)
		{
		 
		} 
	} 
	
	if(!flag){
		document.getElementById("IEUse").style.display="block";
		alert(IeMsg); 
	}  
	
</script>

<script src='plug-in/ace2/assets/js/jquery.min.js'></script>
<script src="plug-in/toast/toastr.min.js"></script>
<script type="text/javascript" src="plug-in/tools/curdtools_zh-cn.js"></script> 
<script src="plug-in/ace/js/bootstrap.js"></script> 
<script src="plug-in/ace/js/jquery-ui.js"></script> 
<script src="plug-in/ace/js/ace/ace.js"></script>
<script type="text/javascript" src="plug-in/login/js/login.js"></script> 

 <script type="text/javascript" src="plug-in/lhgDialog/lhgdialog.min.js?skin=metrole"></script>
 <script type="text/javascript"> 
 var dig;
  function register(){
	 
	  var addurl = 'registerInfoController.do?goAdd';
	  dig = $.dialog({
		  	id:'xxx',
			content: 'url:'+addurl,
			lock : true,
			zIndex: 1000, 
			width:500,
			height:340,
			title:'校外人员注册', 
			opacity : 0.3,
			cache:false,
		    ok: function(){
		    	iframe = this.iframe.contentWindow;
		    	$('#btn_sub', iframe.document).click(); 
				return false;
		    },
		    cancelVal: '关闭',
		    cancel: true,
		    close:function(){  
		    }
		}); 
   }
  
  $(document).ready(function(){
	  if(window.top != window){
		 window.top.location.reload();
	  }
  });
 
  
</script>
 
</body>
</html>